package com.wetsion.securityoauthdemo.rmsclient.handler;

import com.wetsion.securityoauthdemo.rmsclient.common.UserDetails;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 处理获取请求用户信息
 *
 * @author weixin
 * @version 1.0
 * @CLassName UserDetailsGetter
 * @date 2019/3/8 6:56 PM
 */
public interface UserDetailsGetter {
    /**
     * 处理获取到请求用户信息
     *
     * @param request
     * @param response
     * @return com.wetsion.securityoauthdemo.rmsclient.common.UserDetails
     **/
    UserDetails handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException;

}
